<template>
	<view class="box">
		<view class="ckeck" :class="checked?'checked':''" @click="changeChecked">
			<u-icon name="checkmark" size="18" color="#ffffff"></u-icon>
		</view>
	</view>
</template>

<script>
	export default{
		props:{
			checked:{
				type:Boolean,
				default(){
					return false
				}
			}
		},
		methods:{
			login(){
				this.$store.dispatch('login').then(res=>{
					this.cancelLogin();
				})
			},
			changeChecked(){
				console.log('changeChecked')
				this.$emit('changeChecked')
			},
		}
	}
</script>

<style scoped>
	.ckeck{
		width: 36rpx;
		height: 36rpx;
		border: 2rpx solid rgb(200, 201, 204);
		margin-right: 10rpx;
		color: #fff;
		background-color: #fff;
		border-radius: 6rpx	;
	}
	.checked{
		background-color: #e1251b;
	}
	.alert{
		width: 100%;
		padding: 0 20rpx 40rpx;
	}
	.title{
		font-size: 34rpx;
		padding: 40rpx 0;
	}
	.role{
		margin: 0 auto;
		font-size: 28rpx;
	}
	.btn_login{
		width: 100%;
		height: 90rpx;
		color: #fff;
		/* background: linear-gradient(to right,#fc4e27,#e5002d); */
		margin: 40rpx auto;
		border-radius: 6rpx;
	}
	.text_red{
		color: #fc4e27;
	}
	.not_login{
		font-size: 28rpx;
		color: #515151;
		text-align: center;
	}
</style>